import tkinter as tk


class TradeView:

    def __init__(self, root):
        self.width = root.winfo_reqwidth()
        self.height = root.winfo_reqheight()
        self.tradeFrame = tk.Frame(root, width=self.width, height=self.height)
        self.tradeFrame.configure(background="#121212")
        self.tradeFrame.grid(row=0, column=1, sticky="nsew")
        self.createView()

    def createView(self):
        title = tk.Label(self.tradeFrame,
                         bg="#121212",
                         text="交易动态",
                         font=("Helvetica", 12, "bold"),
                         foreground="#FFFFFF")
        title.place(x=self.width / 2 - 50, y=10)